package cn.jingyuan.fox.user.service.impl;

import cn.jingyuan.fox.user.helper.UserHelper;
import cn.jingyuan.fox.user.model.entity.UserEntity;
import cn.jingyuan.fox.user.rpc.push.PushClientFacade;
import cn.jingyuan.fox.user.service.HelloService;
import cn.jingyuan.fox.user.service.dto.SayHelloReqDto;
import cn.jingyuan.fox.user.service.dto.SayHelloRspDto;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@Slf4j
public class HelloServiceImpl implements HelloService {

    @Resource
    PushClientFacade pushClientFacade;

    @Override
    public SayHelloRspDto sayHello(SayHelloReqDto reqDto) {

        UserEntity convert = UserHelper.convert(new Object());

        pushClientFacade.push();

        return null;
    }

}
